#include <all_wlib.h>
#pragma hdrstop
USERES("pOsk.res");
USEFORM("kf_Main.cpp", MainFormOSK);
USEFORM("kf_Cfg.cpp", ConfigForm);
USEUNIT("dsClasses.cpp");
USEUNIT("osk_cmd.cpp");
USEFORM("E:\BMP\!ToDo\Ozi\icons.cpp", Form2);
USEUNIT("oskHook.cpp");
USEFORM("kf_Log.cpp", LogForm);
//---------------------------------------------------------------------------
#include "osk_cmd.h"

//---------------------------------------------------------------------------
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
  {  HWND w = FindWindow( "TMainFormOSK", "pOSK" );
     if ( IsWindow(w) ) {
       SendMessage( w, MSG_OSK_ACTIVATE, OSK_ACTIVATE_ACTIVE, 0 );
       return 0;
     }

     try {
       Application->Initialize();
       Application->Title = "OSK";
       Application->CreateForm(__classid(TMainFormOSK), &MainFormOSK);
                 Application->Run();
     }
     catch (Exception &exception) {
        Application->ShowException(&exception);
     }
 return 0;
}